import Vue from 'vue'
import VueRouter from 'vue-router'
import Movie from '../views/Movie.vue'
import Video from '../views/Video.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Movie',
    component: Movie
  },
  {
    path: '/Video',
    name: 'Video',
    component: Video
  },
  {
    path: '/My',
    name: 'My',
    component: () => import( '../views/My.vue')
  },
  {
    path:'/login',
    name:'Login',
    component:() =>import('../views/Login.vue')
  }, 
  

]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
